<template>
  <div class="gh-detail">
    <div
      class="gh-detail-item"
      v-for="(item, index) of config"
      :key="index"
    >
      <div class="gh-detail-item-name">
        {{ item.name }}
      </div>
      <div class="gh-detail-item-val">
        <div class="gh-detail-item-val-num">
          {{ item.value }}
        </div>
        {{ item.unit }}
      </div>
    </div>
  </div>
</template>
<script>
export default {
  props: {
    config: {
      type: Array
    }
  }
}
</script>
<style lang="scss" scoped>
.gh-detail {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  padding: 0 30px;
  background: url('~@/assets/img/overview/td-mid-bg.png')
    no-repeat;
  background-size: 100% 100%;
  &-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    &-name {
      font-size: 12px;
      line-height: 12px;
      font-weight: 500;
      color: #4c565c;
      margin-bottom: 6px;
    }
    &-val {
      display: flex;
      align-items: flex-end;
      justify-content: flex-start;
      font-size: 12px;
      line-height: 12px;
      font-weight: 500;
      color: #4c565c;
      &-num {
        font-size: 14px;
        font-size: 14px;
        font-family: DIN;
        font-weight: bold;
        color: #000000;
        margin: 0 5px 0px 0;
      }
    }
  }
}
</style>
